import request from '@/utils/request'

// 查询课堂考勤列表
export function listTeachCheck(query) {
  return request({
    url: '/teach/teachCheck/list',
    method: 'get',
    params: query
  })
}

// 查询课堂考勤详细
export function getTeachCheck(id) {
  return request({
    url: '/teach/teachCheck/' + id,
    method: 'get'
  })
}

// 新增课堂考勤
export function addTeachCheck(data) {
  return request({
    url: '/teach/teachCheck',
    method: 'post',
    data: data
  })
}

// 修改课堂考勤
export function updateTeachCheck(data) {
  return request({
    url: '/teach/teachCheck',
    method: 'put',
    data: data
  })
}

// 删除课堂考勤
export function delTeachCheck(id) {
  return request({
    url: '/teach/teachCheck/' + id,
    method: 'delete'
  })
}

// 导出课堂考勤
export function exportTeachCheck(query) {
  return request({
    url: '/teach/teachCheck/export',
    method: 'get',
    params: query
  })
}

// 下载导入模板
export function importTemplate() {
  return request({
    url: '/teach/teachCheck/importTemplate',
    method: 'get'
  })
}